package org.jeecg.modules.golf.tag.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.golf.question.client.QuestionTagAnalysisDTO;
import org.jeecg.modules.golf.question.client.qto.StatisticsQuestionAnalysisQueryDTO;
import org.jeecg.modules.golf.tag.entity.TagMapping;

import java.util.List;
import java.util.Map;

/**
 * @Description: 标签关联表
 * @Author: jeecg-boot
 * @Date:   2020-10-18
 * @Version: V1.0
 */
public interface TagMappingMapper extends BaseMapper<TagMapping> {

	 boolean deleteByMainId(@Param("mainId") Long mainId);

	 List<TagMapping> selectByMainId(@Param("mainId") Long mainId,@Param("mappingType") Integer mappingType);

	List<Map<String, String>> queryTagByGroup(@Param("userid") String userid);

	/**
	 * 学员标签分析
	 * @param statisticsQuestionAnalysisQueryDTO
	 * @return
	 */
	Page<QuestionTagAnalysisDTO> tagAnalysis(StatisticsQuestionAnalysisQueryDTO statisticsQuestionAnalysisQueryDTO);
}
